import pickle

students = {
    1 : [ 'Jason', 19 ],
    2 : [ 'Mike', 20 ],
    3 : [ 'Steve', 18 ],
    4 : [ 'Hans', 19 ],
    5 : [ 'Pike', 20 ]
}

f = open( 'students.pkl', 'wb' )
pickle.dump( students, f )

f.close()